/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1persondemo;

/**
 *
 * @author apple
 */
public class Person {
    
    private String name;
    private int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    
    public void helloto(Person somebody)
    {
        System.out.println(this.name+":"+somebody.getName()+", How do you do!");
    }
    
    public void say(String content)
    {
        System.out.println(this.name+":"+content);
    }
    
    public void bye()
    {
        System.out.println(this.name+":Nice to meet you again.Bye.");
    }
    
}
